package com.djdg.foodies.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;


@SpringBootApplication
@ComponentScan({ "com.djdg.foodies"})
@EnableJpaRepositories(basePackages = "com.djdg.foodies.common.repository")
@EntityScan(basePackages = "com.djdg.foodies.common.entity")
@EnableAutoConfiguration(exclude = JpaRepositoriesAutoConfiguration.class)
@MapperScan(basePackages = {"com.djdg.foodies.common.mapper"})
public class FoodiesAdminApplication {

	public static void main(String[] args) {
		SpringApplication.run(FoodiesAdminApplication.class, args);
	}
}
